﻿using System;

using System.Collections.Generic;
using System.Text;
using Silvermoon.Controls.Base;
using Silvermoon.Visuals;
using Silvermoon.Utils;
using System.Drawing;
using Silvermoon.Images;
using Silvermoon.Controls.Classes;

namespace Silvermoon.Controls
{
    /// <summary>
    /// Renders the Lens for a <see cref="T:LensView"/>.
    /// </summary>
    internal class Lens : Decorator
    {
        private ImageVisual background;
        private LensView view;

        private static Color[] magColors;

        static Lens()
        {
            magColors = ColorUtil.SingleColor(Color.White);
        }

        public Lens(LensView view)
        {
            this.view = view;
            background = new ImageVisual { Color = Color.FromArgb(244, 244, 255) };
            background.Image = SysImages.Lens;
            Visuals = new Visual[] { background };
            Flags = ControlFlags.DisableHitTest;

        }


        protected override void OnLayout()
        {
            background.Size = Control.ScaledSize(Width, Height);
            base.OnLayout();
        }

    }
}
